package com.yx.system.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.yx.system.entity.SysRoleDept;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/** 角色与部门对应关系 Mapper 接口
 * Created by wuye on 2017/11/24.
 */
@Mapper
@Repository
public interface SysRoleDeptDao extends BaseMapper<SysRoleDept> {

    /**
     * 根据角色ID，获取部门ID列表
     */
    List<Long> queryDeptIdList(Long roleId);

    void save(Map<String, Object> map);

    void deleteByRoleId(Object roleId);
}